<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <button v-on:click="method1()">按钮1</button>
        <button @click="method2()">按钮2</button>
    </div>
    <script>
        let v = new Vue({
            el:'#app',
            data(){
                return{

                }
            },
            methods:{
                method1(){
                    alert("我是毕龙？")
                },
                method2(){
                    alert("我是班长？")
                }
            }
        })
    </script>
</body>
</html>
